<%--
  Created by IntelliJ IDEA.
  User: asd73
  Date: 2017/9/21
  Time: 22:54
  To change this template use File | Settings | File Templates.
  jq控制html的内容
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery.js"></script>
    <style type="text/css">
        div{width: 300px; height: 300px;background: pink;}
    </style>
    <script type="text/javascript">
        $(function () {
            $('button').click(function (e) {
                $('div').html('wwchen work');//设置html内容
                alert($('div').html())//获取html内容
            })
        })
    </script>
</head>
<body>
    <button>按钮</button>

    <div title="wo shi title">
        wwchen job
    </div>
</body>
</html>
